+2006-06-02 Øyvind Kolås <pippin@gimp.org>
+
+ I'm not entirely sure about installing babl-classes.h like this, it
+ might make more sense to create setters/getters to be used. Thus
+ making it possible to extend the structs at a later stage without breaking
+ binary compatibility.
+
+ * babl/Makefile.am: Added babl-classes.h to the installed headers
+ * babl/babl-classes.h: Made the magic number fit in 32bit int.
+ * babl/babl.h: include babl-classes.h
+
2006-02-22 Øyvind Kolås <pippin@gimp.org>
* docs/index-static.html.in: added a link to the DHTML version of the
library_includedir=$(includedir)/babl-$(BABL_API_VERSION)/babl
library_include_HEADERS = \
- babl.h
+ babl.h \
+ babl-classes.h
INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/babl/base
* differentiation in polymorphic functions. (as well as manual
* type check assertions).
*/
-#define BABL_MAGIC 0xbAb10000
+#define BABL_MAGIC 0xbAb100
typedef enum {
BABL_INSTANCE = BABL_MAGIC,
BablConversion *conversion;
} BablFishSimple;
-
+#ifndef BABL_HARD_MAX_PATH_LENGTH
+#define BABL_HARD_MAX_PATH_LENGTH 16
+#endif
/* BablFishPath is a combination of registered conversions, both
* from the reference types / model conversions, and optimized format to
double cost; /* number of ticks *10 + chain_length */
double loss; /* error introduced */
- BablConversion *conversion[BABL_HARD_MAX_PATH_LENGTH];
int conversions;
+ BablConversion *conversion[BABL_HARD_MAX_PATH_LENGTH];
} BablFishPath;
/* BablFishReference